﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageUser.aspx.cs" Inherits="Admin_ManageUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色管理</title>
    
    <link href="../css/SIS.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script language="javascript" type="text/javascript" src="../Js/Excel.js"></script>
    <style type="text/css">

    .button
    {
    width:56px;  /*图片宽带*/
    background:url(../img/button.jpg) no-repeat left top;  /*图片路径*/
    border:none;  /*去掉边框*/
    height:24px; /*图片高度*/
    color:White;
    vertical-align: middle;
    text-align:center
    }

    .grid-head 
    { 
        font-size: 12px; 
        font-weight:bold; 
        color:White;
        background-image:url(../img/footer.jpg); 
        text-align:center; 
        vertical-align:middle; 
    }

    .style3
            {
                font-size:12px;
                width:360px;
                height:28px;
                color:White;
            }

    .style4
            {
                font-size:12px;
                width:156px;
                color:White;
            }


</style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div id="Div2">
        <img id="imgTop" height="38px;" src="../img/ManageUser.jpg" width="100%" alt="用户管理" />
    </div>
            
    <table id="__01"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><img src="../img/Manage_01.jpg" width="28" height="34" alt=""/></td>
		<td colspan="2" style="background:url(../img/Manage_02.jpg)"></td>
		<td><img src="../img/Manage_03.jpg" width="29" height="34" alt=""/></td>
	</tr>
	<tr>
		<td style=" background:url(../img/Manage_04.jpg)"><img src="../img/Manage_04.jpg" width="28" height="15" alt=""/></td>
		<td style="background-color:#599ce0" align="right" class="style4">选择角色：</td>
		<td style="background-color:#599ce0" align="left" class="style3">
		    <asp:DropDownList ID="dropRoleSelect" runat="server" Width="200px" AutoPostBack="True" OnSelectedIndexChanged="dropRoleSelect_SelectedIndexChanged">
            </asp:DropDownList>
		</td>
		<td style=" background:url(../img/Manage_07.jpg)"><img src="../img/Manage_07.jpg" width="29" height="15" alt=""/></td>
	</tr>
	<tr>
		<td style=" background:url(../img/Manage_04.jpg)"><img src="../img/Manage_04.jpg" width="28" height="15" alt=""/></td>
		<td style="background-color:#599ce0" align="right" class="style4">用户名：</td>
		<td style="background-color:#599ce0" align="left" class="style3">
		    <asp:TextBox ID="textUserName" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空" ControlToValidate="textUserName"></asp:RequiredFieldValidator>
		</td>
		<td style=" background:url(../img/Manage_07.jpg)"><img src="../img/Manage_07.jpg" width="29" height="15" alt=""/></td>
	</tr>
	<tr id="oldpwd" runat="server">
		<td style=" background:url(../img/Manage_04.jpg)"><img src="../img/Manage_04.jpg" width="28" height="15" alt=""/></td>
		<td style="background-color:#599ce0" align="right" class="style4">旧密码：</td>
		<td style="background-color:#599ce0" align="left" class="style3">
		    <asp:TextBox ID="textOldPwd" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="请输入旧密码" ControlToValidate="textOldPwd"></asp:RequiredFieldValidator>
		</td>
		<td style=" background:url(../img/Manage_07.jpg)"><img src="../img/Manage_07.jpg" width="29" height="15" alt=""/></td>
	</tr>
	<tr>
		<td style=" background:url(../img/Manage_04.jpg)"><img src="../img/Manage_04.jpg" width="28" height="15" alt=""/></td>
		<td style="background-color:#599ce0" align="right" class="style4">密码：</td>
		<td style="background-color:#599ce0" align="left" class="style3">
		    <asp:TextBox ID="textNewPwd" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入密码" ControlToValidate="textNewPwd"></asp:RequiredFieldValidator>
		</td>
		<td style=" background:url(../img/Manage_07.jpg)"><img src="../img/Manage_07.jpg" width="29" height="15" alt=""/></td>
	</tr>
	<tr>
		<td style=" background:url(../img/Manage_04.jpg)"><img src="../img/Manage_04.jpg" width="28" height="15" alt=""/></td>
		<td style="background-color:#599ce0" align="right" class="style4">确认密码：</td>
		<td style="background-color:#599ce0" align="left" class="style3">
		    <asp:TextBox ID="textSurePwd" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请再次输入密码" ControlToValidate="textSurePwd"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="textNewPwd" ControlToValidate="textSurePwd" ErrorMessage="密码不一致"></asp:CompareValidator>
		</td>
		<td style=" background:url(../img/Manage_07.jpg)"><img src="../img/Manage_07.jpg" width="29" height="15" alt=""/></td>
	</tr>
	<tr>
		<td><img src="../img/Manage_12.jpg" width="28" height="5" alt=""/></td>
		<td colspan="2" style=" background:url(../img/Manage_13.jpg)"><img src="../img/Manage_13.jpg" width="202" height="5" alt=""/></td>
		<td><img src="../img/Manage_14.jpg" width="29" height="5" alt=""/></td>
	</tr>
	<tr>
		<td><img src="../img/Manage_15.jpg" width="28" height="27" alt=""/></td>
		<td colspan="2" style="background-color:#b9dcef" align="center">
		    <asp:Button ID="btnEdit" runat="server" Text="保存" OnClick="btnEdit_Click" CssClass="button"></asp:Button>
                            &nbsp;
            <asp:Button ID="btnSure" runat="server" Text="添加" OnClick="btnSure_Click" CssClass="button"></asp:Button>
                            &nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CausesValidation="False" CssClass="button"></asp:Button>
		</td>
		<td><img src="../img/Manage_17.jpg" width="29" height="27" alt=""/></td>
	</tr>
	<tr>
		<td><img src="../img/Manage_18.jpg" width="28" height="10" alt=""/></td>
		<td colspan="2" style=" background:url(../img/Manage_19.jpg)"><img src="../img/Manage_19.jpg" width="202" height="10" alt=""/></td>
		<td><img src="../img/Manage_20.jpg" width="29" height="10" alt=""/></td>
	</tr>
	<tr>
		<td style=" background:url(../img/Manage_21.jpg)"><img src="../img/Manage_21.jpg" width="28" height="86" alt=""/></td>
		<td colspan="2" style="background-color:#ffffff" align="center">
			    <asp:GridView ID="gridUserList" runat="server" AutoGenerateColumns="False" Width="100%"
                            CellPadding="4" DataKeyNames="ID_KEY" ForeColor="#333333" GridLines="None"
                            OnRowDeleting="gridUserList_RowDeleting" OnSelectedIndexChanging="gridUserList_SelectedIndexChanging">
                <RowStyle BackColor="#EFF3FB"  HorizontalAlign ="Center"/>
                <Columns>
                    <asp:BoundField DataField="ID_KEY" HeaderText="编号" />
                    <asp:BoundField DataField="UID" HeaderText="用户名" />
                    <asp:BoundField DataField="UGROUP" HeaderText="所属角色" />
                    <asp:CommandField  HeaderText="操作" SelectText="修改密码"
                        ShowSelectButton="True" />
                    <asp:CommandField HeaderText="操作" DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('一旦删除将无法恢复，请谨慎删除！')&quot;&gt;删除用户 &lt;/div&gt;"
                        ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle CssClass="grid-head"/>
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
			</td>
		<td style=" background:url(../img/Manage_23.jpg)"><img src="../img/Manage_23.jpg" width="29" height="86" alt=""/></td>
	</tr>
	<tr>
		<td><img src="../img/Manage_24.jpg" width="28" height="25" alt=""/></td>
		<td colspan="2" style=" background:url(../img/Manage_25.jpg)"><img src="../img/Manage_25.jpg" width="202" height="25" alt=""/></td>
		<td><img src="../img/Manage_26.jpg" width="29" height="25" alt=""/></td>
	</tr>
</table>
    </form>
</body>
</html>
